//
//  Find_QuestionADTTableViewCell.m
//  ZHXSHQUser
//
//  Created by 范玉杰 on 2017/4/28.
//  Copyright © 2017年 boran. All rights reserved.
//

#import "Find_QuestionADTTableViewCell.h"
@interface Find_QuestionADTTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *TitleLab;
@property (weak, nonatomic) IBOutlet UIView *BgView;

@end

@implementation Find_QuestionADTTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self = [[NSBundle mainBundle]loadNibNamed:@"Find_QuestionADTTableViewCell" owner:nil options:nil][0];
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    [self makeMasklayer];
}

#pragma mark - 切圆角
-(void)makeMasklayer{
    _BgView.layer.cornerRadius = 35;
    _BgView.layer.masksToBounds = YES;
//    UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:_BgView.bounds
//                                                   byRoundingCorners:UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii:CGSizeMake(30, 30)];
//    CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
//    maskLayer.frame = _BgView.bounds;
//    maskLayer.path = maskPath.CGPath;
//    _BgView.layer.mask = maskLayer;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
